/*
Realistic Unit Modification v4.0 Dialog 
v4.0.0.1 [ALPHA]
Concept & Development by Draper & Raps | [VRC]
*/

private ["_id","_helo","_mkrname"];

_id = _this select 0;
_helo = _this select 1;

_mkrname = format ["%1station",_helo];

waitUntil {
	((((getPos _helo select 0) - (getMarkerPos _mkrname select 0))^2+((getPos _helo select 1) - (getMarkerPos _mkrname select 1))^2)^0.5 < 100) or (!alive _helo);
};

player removeAction _id;

if (true) exitwith {};